//
//  Controller.h
//
//  Created by Labbé Pellegrini, Sébastien on 12-05-24.
//  Copyright 2012 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <Foundation/Foundation.h>
#import "Descente.h"
#import "Participant.h"
#import "ParticipantListeController.h"
#import "PodiumListeController.h"

@interface Controller : NSObject {
	//Textfield Outlets
    IBOutlet UITextField *txtChrono;
    IBOutlet UITextField *txtNom;
    IBOutlet UITextField *txtPays;
    IBOutlet UITextField *txtPrenom;
	//Button Outlets
    IBOutlet UIButton *btnDepart;
    IBOutlet UIButton *btnArrivee;
    IBOutlet UIButton *btnDidNotFinish;
    IBOutlet UIButton *btnInscrire;
    IBOutlet UIButton *btnPorteManquee;
    IBOutlet UIButton *btnPorteTouchee;
	//Label Outlets
	IBOutlet UILabel *lblEnCours;
	IBOutlet UILabel *lblProchain1;
	IBOutlet UILabel *lblProchain2;
	//Tables Outlets
    IBOutlet UITableView *tblPodium;
    IBOutlet UITableView *tblParticipants;
    
    
    ParticipantListeController * partListController;
    PodiumListeController *podiumListController;
	Participant *participantActuel;
	int participantIndex;
//    Descente *descenteCourrante;
	
}

@property (nonatomic, retain) IBOutlet ParticipantListeController * partListController;
@property (nonatomic, retain) IBOutlet PodiumListeController * podiumListController;
@property (nonatomic, retain) Descente *descenteCourrante;
@property (nonatomic, retain) Participant * participantActuel;
@property (nonatomic, assign) int participantIndex;

- Controller;
- (IBAction)ajouterPenaliteManque:(id)sender;
- (IBAction)ajouterPenaliteTouche:(id)sender;
- (IBAction)demarrerChronoAction:(id)sender;
- (IBAction)dnfParcoursAction:(id)sender;
- (IBAction)inscrireAction:(id)sender;
- (IBAction)terminerParcoursAction:(id)sender;
- (void)mettreAJourChrono;
- (void)mettreAJourParticipants;
@end
